USB voltage and current measurement